import request from '@/utils/request'

// 查询医生业绩统计列表
export function listDoctorAchievement(query) {
    return request({
        url: '/jy/doctorAchievement/list',
        method: 'get',
        params: query
    })
}

// 查询医生业绩统计详细
export function getDoctorAchievement(id) {
    return request({
        url: '/jy/doctorAchievement/' + id,
        method: 'get'
    })
}

// 新增医生业绩统计
export function addDoctorAchievement(data) {
    return request({
        url: '/jy/doctorAchievement',
        method: 'post',
        data: data
    })
}

// 修改医生业绩统计
export function updateDoctorAchievement(data) {
    return request({
        url: '/jy/doctorAchievement',
        method: 'put',
        data: data
    })
}

// 删除医生业绩统计
export function delDoctorAchievement(id) {
    return request({
        url: '/jy/doctorAchievement/' + id,
        method: 'delete'
    })
}

// 查询医生id和业绩统计
export function getDoctorIdAndAchievement() {
    return request({
        url: '/jy/doctorAchievement/selectDoctorIdAndTotalcost',
        method: 'get'
    })
}

//查询医生id和患者id
export function getDoctorIdAndPatientId() {
    return request({
        url: '/jy/doctorAchievement/selectDoctorIdAndPatientId',
        method: 'get'
    });
}